package forms;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

public class VecinoForm {
	// Constructor
	public VecinoForm() {
		super();
	}

	// Attributes
	private int vecinoId;
	private int comunidadId;

	private String username;
	private String password;
	private String RepeatPassword;
	private String nombre;
	private String apellidos;
	private String email;
	private String vivienda;
	private String dni;
	private Boolean moroso;
	private Boolean acceptConditions;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRepeatPassword() {
		return RepeatPassword;
	}

	public void setRepeatPassword(String repeatPassword) {
		RepeatPassword = repeatPassword;
	}

	@NotBlank
	public String getNombre() {
		return nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	@NotBlank
	public String getApellidos() {
		return apellidos;
	}

	public void setApellidos(String apellidos) {
		this.apellidos = apellidos;
	}

	@NotBlank
	@Email
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@NotBlank
	@Pattern(regexp = "^\\d{8}[A-Z]{1}$")
	public String getDni() {
		return dni;
	}

	public void setDni(String dni) {
		this.dni = dni;
	}

	public Boolean getMoroso() {
		return moroso;
	}

	public void setMoroso(Boolean moroso) {
		this.moroso = moroso;
	}

	public Boolean getAcceptConditions() {
		return acceptConditions;
	}

	public void setAcceptConditions(Boolean acceptConditions) {
		this.acceptConditions = acceptConditions;
	}

	public int getVecinoId() {
		return vecinoId;
	}

	public void setVecinoId(int vecinoId) {
		this.vecinoId = vecinoId;
	}

	@NotBlank
	public String getVivienda() {
		return vivienda;
	}

	public void setVivienda(String vivienda) {
		this.vivienda = vivienda;
	}

	public int getComunidadId() {
		return comunidadId;
	}

	public void setComunidadId(int comunidadId) {
		this.comunidadId = comunidadId;
	}

}
